package org.dromara.commission.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.commission.listener.redisPlus.RedisPlusEntity;
import org.dromara.commission.listener.redisPlus.RedisPlusJudgeType;

import java.io.Serial;
import java.io.Serializable;

/**
 * 代理商维度对象导入VO
 *
 * @author Lion Li
 */

@Data
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = true)
@TableName("lzsh_handwork_commission")
// @Accessors(chain = true) // 导入不允许使用 会找不到set方法
public class LzshHandworkCommissionImportVo extends RedisPlusEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 帐期
     */
    @ExcelProperty(value = "帐期")
    private String accountPeriod;

    /**
     * 渠道视图_经营主体编码
     */
    @ExcelProperty(value = "渠道视图_经营主体编码")
    private String businessCode;

    /**
     * 代理商名称
     */
    @ExcelProperty(value = "代理商名称")
    private String agentName;

    /**
     * 渠道
     */
    @ExcelProperty(value = "渠道")
    private String channel;

    /**
     * 店中商编码
     */
    @ExcelProperty(value = "店中商编码")
    private String shopCode;

    /**
     * 网点名称
     */
    @ExcelProperty(value = "网点名称")
    private String networkName;

    /**
     * 原因
     */
    @ExcelProperty(value = "原因")
    private String reason;

    /**
     * 酬金
     */
    @ExcelProperty(value = "酬金")
    private double reward;

    @Override
    public RedisPlusJudgeType judge(Object oldFlag) {
        return RedisPlusJudgeType.JUDGE_TYPE_NONE;
    }

    @Override
    public Object getFlag() {
        return null;
    }
}
